Etc  = ../etc
Src  = $(HOME)/opt/glee/bin
Gawk = $(HOME)/opt/gawk/bin/gawk
Awks = $(shell ls *.awk)
Srcs = $(Src)/$(subst .awk ,.awk $(Src)/,$(Awks))

awks :  $(Gawk) $(Src) $(subst .awk,,$(Srcs))

$(Src)/% :  %.awk
	@echo "#!$(Gawk) -f " > $@ 
	@cat $< >> $@
	@(echo " "; echo "# $<";) >> $@
	@echo "# Built by $(USER) on `date`." >> $@
	@cat $(Etc)/header.txt >> $@ 
	chmod +x $@ 

